package java8;

import java.util.Scanner;

public class Code107 {
	public static void main(String[] args) {
		int[] nums=new int[]{12,23,34,45,56};
		System.out.println("请输入一个整数！");
		Scanner input=new Scanner(System.in);
		int num = input.nextInt();
		boolean isfind=true;
		for(int i=0;i<nums.length;i++){
			if(num==nums[i]){
				isfind=false;
				break;			
			}			
		}
		if(isfind){
			System.out.println("没猜对！");
		}else{
			System.out.println("猜对了！");
		}
	}

}
